<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" charset="utf-8"></script>
	</head>
	<body>
		<h1>{{msg}}</h1>
		<div id="app">
			<h1>{{msg}}</h1>
			<h2>{{msg}}</h1>
			<h3>{{msg}}</h1>
			<h4>{{msg}}</h1>
			<h5>{{msg}}</h1>
			<h6>{{msg}}</h1>	
			<input type="text" v-model="msg" >	<!-- v-model双向绑定 -->
		</div>
		
	</body>
	<script>
		var vm=new Vue({
			el:"#app",
			/* data:{		对象写法
				msg:"芜湖"
			} */
			/* data:function(){		//函数写法
				return{
					msg:"芜湖"
				}
			} */
			data(){		/* es6写法 */
				return{
						msg:"芜湖"
				}
			}
		})
		console.log(vm.msg)
	</script>
</html>
